home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / palette / dibapi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.2 KB  |  40 lines

  1. // dibapi.h
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1999 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13.  
  14. #ifndef _INC_DIBAPI
  15. #define _INC_DIBAPI
  16.  
  17. /* Handle to a DIB */
  18. DECLARE_HANDLE(HDIB);
  19.  
  20. /* DIB constants */
  21. #define PALVERSION   0x300
  22.  
  23. /* DIB Macros*/
  24. #define RECTWIDTH(lpRect)     ((lpRect)->right - (lpRect)->left)
  25. #define RECTHEIGHT(lpRect)    ((lpRect)->bottom - (lpRect)->top)
  26.  
  27.  
  28. /* Function prototypes */
  29. BOOL      WINAPI  PaintDIB (HDC, LPRECT, HDIB, LPRECT, CPalette* pPal);
  30. BOOL      WINAPI  CreateDIBPalette(HDIB hDIB, CPalette* cPal);
  31. DWORD     WINAPI  DIBWidth (LPSTR lpDIB);
  32. DWORD     WINAPI  DIBHeight (LPSTR lpDIB);
  33. WORD      WINAPI  PaletteSize (LPSTR lpbi);
  34. WORD      WINAPI  DIBNumColors (LPSTR lpbi);
  35. HGLOBAL   WINAPI  CopyHandle (HGLOBAL h);
  36.  
  37. HDIB      WINAPI  ReadDIBFile(CFile& file);
  38.  
  39. #endif //!_INC_DIBAPI
  40.